<?php
class yuan{
    private $r;
    private $s;
    public function __set($r, $value)
    {
        $value=$r>0?$r*3.14:0;
        $this->s=$value;
    }
    public function prtint(){
        echo $this->s;
    }
}
